home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / metamail.1 < prev    next >
Text File  |  1995-07-25  |  33KB  |  661 lines

  1.  
  2.  
  3.  
  4.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           metamail - infrastructure for mailcap-based multimedia mail
  10.           handling
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           mmmmeeeettttaaaammmmaaaaiiiillll[-b] [-B] [-c ccccoooonnnntttteeeennnnttttttttyyyyppppeeee ...] [-d] [-e] [-E
  14.           ccccoooonnnntttteeeennnntttteeeennnnccccooooddddiiiinnnngggg] [-f  ffffrrrroooommmm----nnnnaaaammmmeeee] [-h] [-m mmmmaaaaiiiilllleeeerrrr----nnnnaaaammmmeeee] [-p]
  15.           [-P] [-r] [-s ssssuuuubbbbjjjjeeeecccctttt] [-q] [-w] [-x] [-y] [-z] [ffffiiiilllleeee----nnnnaaaammmmeeee]
  16.  
  17.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.           The _m_e_t_a_m_a_i_l program reads a "mailcap" file to determine how
  19.           to display non-text at the local site.  Every mail-reading
  20.           interface needs to call metamail whenever non-text mail is
  21.           being viewed, unless the mail is of a type that is already
  22.           understood by the mail-reading program. _M_e_t_a_m_a_i_l consults
  23.           the mailcap file(s) to determine what program to use to show
  24.           the message to the user.
  25.  
  26.           At a site where all mail reading interfaces have been
  27.           modified to call _m_e_t_a_m_a_i_l for non-text mail, extending the
  28.           local email system to handle a new media type in the mail
  29.           becomes a simple matter of adding a line to a mailcap file.
  30.           (Although this manual page will discuss only mail, metamail
  31.           is equally useful in adding multimedia support to news and
  32.           bulletin board reading programs, assuming those programs
  33.           preserve the "Content-type" header or some other indication
  34.           of the content type of the messages.)
  35.  
  36.           In general, users will never run metamail directly.
  37.           Instead, metamail will be invoked for the user automatically
  38.           by the user's mail reading program, whenever a non-text
  39.           message is to be viewed.  This manual page, therefore, is
  40.           directed not at end users, but at two categories of readers:
  41.           those who are adding metamail support to a particular mail-
  42.           reading program, and those who are adding lines to a mailcap
  43.           file.  The former need only to be concerned with the command
  44.           line syntax of metamail.  The latter may ignore the command
  45.           line syntax, and need only be concerned with the mailcap
  46.           file syntax, as described in a later section.
  47.  
  48.           Note:  Metamail determines the type of a message using the
  49.           "Content-type" header, as defined in RFC 1049 and RFC-1341
  50.           (MIME).  However, using the -b and -c options, metamail can
  51.           be made to work with mail that is not in Internet format,
  52.           including X.400 messages.  Note also that metamail
  53.           automatically decodes mail that has been encoded for 7 bit
  54.           transport if the mail includes a Content-Transfer-Encoding
  55.           header as specified by RFC-1341.  If data has been encoded
  56.           via the "base64" encoding, it will map CRLF to local
  57.           newlines for textual data, but not for other data, unless
  58.           instructed otherwise by a "textualnewlines" field in a
  59.           mailcap entry.
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 6/30/95)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  71.  
  72.  
  73.  
  74.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  75.           When called with no options or arguments, metamail expects
  76.           to receive an RFC 822 format message on its standard input.
  77.           The following options can alter that expectation:
  78.  
  79.           ----bbbb      This option tells metamail that the message is not
  80.                   in RFC 822 format, but instead is only the body of
  81.                   the message (i.e. there are no message headers).
  82.                   The use of -b requires the use of -c.
  83.  
  84.           ----BBBB      This option tells metamail that the message is to be
  85.                   displayed in the background, if it is non-
  86.                   interactive (i.e. it doesn't have the
  87.                   "needsterminal" attribute in the mailcap file).  It
  88.                   cannot be used with -p or -P.
  89.  
  90.           ----cccc <<<<ccccoooonnnntttteeeennnnttttttttyyyyppppeeee>>>>
  91.                   This option tells metamail to use the specified
  92.                   content type rather than the one in the headers, if
  93.                   any.
  94.  
  95.           ----dddd      This option tells metamail not to ask any questions
  96.                   before running an interpreter to view the message.
  97.                   (By default, metamail always asks before running
  98.                   almost any interpreter, if it is running in an
  99.                   interactive terminal and the MM_NOASK environment
  100.                   variable is not set.  However, it does not ask about
  101.                   the content-type "text" -- that is, the default
  102.                   value for MM_NOASK is "text,text/plain")
  103.  
  104.           ----eeee      This option tells metamail to "eat" leading newlines
  105.                   in message bodies.  This is particularly useful for
  106.                   MH-format mail.
  107.  
  108.           ----ffff <<<<aaaaddddddddrrrreeeessssssss>>>>
  109.                   This option specifies the name of the sender of the
  110.                   message.  Otherwise, this is determined from the
  111.                   header, if possible.  This information will be
  112.                   placed in the environment to make it available to
  113.                   any interpreters called by metamail.
  114.  
  115.           ----hhhh      This option specifies that metamail is being used
  116.                   for _p_r_i_n_t_i_n_g a message.  In particular, this means
  117.                   that the normal mailcap "command" field will not be
  118.                   executed, but instead the command specified in the
  119.                   "print" field will be executed.  (If there is
  120.                   nothing in the print field, the mailcap entry will
  121.                   be ignored and the search will continue for a
  122.                   matching mailcap entry that does have a print
  123.                   field.)  The -h option automatically turns on the -d
  124.                   option.
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 6/30/95)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  137.  
  138.  
  139.  
  140.           ----mmmm <<<<mmmmaaaaiiiilllleeeerrrrnnnnaaaammmmeeee>>>>
  141.                   This option specifies the name of the mail program
  142.                   that called metamail.  This information will be
  143.                   placed in the environment to make it available to
  144.                   any interpreters called by metamail.
  145.  
  146.           ----pppp      This option specifies that, if necessary, output
  147.                   should be shown to the user one page at a time.  By
  148.                   default, this will cause such output to be piped
  149.                   through the "more" command, but the environment
  150.                   variable METAMAIL_PAGER can be used to specify an
  151.                   alternative command to use.  Note that one should
  152.                   use -p rather than piping the output of metamail
  153.                   through a pager, because some interpreters called by
  154.                   metamail might be interactive rather than requiring
  155.                   pagination.  Metamail can tell whether or not to use
  156.                   a pager from information in the mailcap file.  This
  157.                   option cannot be used with -B.
  158.  
  159.           ----PPPP      This option is just like -p, except that it also
  160.                   causes metamail to print "Press RETURN to go on" and
  161.                   await a RETURN after it has finished with the
  162.                   message.  This is intended for use only when
  163.                   metamail calls itself recursively in a new terminal
  164.                   window created only for that purpose.  This option
  165.                   cannot be used with -B.
  166.  
  167.           ----qqqq      This option tells metamail to be quiet.  By default,
  168.                   metamail prints a few key message headers
  169.                   (controllable with the KEYHEADS and KEYIGNHEADS
  170.                   environment variables) and some other informative
  171.                   information, on stdout before running the
  172.                   interpreter, but this behavior is suppressed with
  173.                   -q.
  174.  
  175.           ----rrrr      This option specifies that it is OK to run as root.
  176.                   By default, metamail refuses to run if the real or
  177.                   effective user id is root.  You can get the same
  178.                   effect using the MM_RUNASROOT environment variable.
  179.  
  180.           ----RRRR      This option specifies that the /usr/ucb/reset should
  181.                   be executed to reset the terminal state, before any
  182.                   other I/O activity.
  183.  
  184.           ----ssss <<<<ssssuuuubbbbjjjjeeeecccctttt>>>>
  185.                   This option specifies the subject of the mail
  186.                   message.  By default, this information is obtained
  187.                   from the headers.  This information will be placed
  188.                   in the environment to make it available to any
  189.                   interpreters called by metamail.
  190.  
  191.           ----wwww      This option tells metamail that instead of
  192.  
  193.  
  194.  
  195.      Page 3                                          (printed 6/30/95)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  203.  
  204.  
  205.  
  206.                   consulting a mailcap file to decide how to display
  207.                   the data, it should simply decode each part and
  208.                   write it to a file in its raw (possibly binary)
  209.                   format.  Depending on the circumstances in which it
  210.                   is called, metamail may derive the file name to use
  211.                   from the message headers, by asking the user, or by
  212.                   generating a unique temporary file name.
  213.  
  214.           ----xxxx      This option tells metamail that it is definitely not
  215.                   running on a terminal, no matter what isatty() says.
  216.                   This is necessary when metamail is actually running
  217.                   on a pseudoterminal and isatty(3) returns TRUE but
  218.                   there's really no terminal on which to interact with
  219.                   the user.  The same effect as -x can also be
  220.                   obtained with the environment variable MM_NOTTTY.
  221.  
  222.           ----yyyy      This option tells metamail to try to "yank" a MIME-
  223.                   format message from the body of the message.  It is
  224.                   useful when a MIME-format has been rejected by a
  225.                   mail delivery system that does not now how to format
  226.                   the rejection in a MIME-compliant manner.  (For the
  227.                   convenience of those who can't control how metamail
  228.                   is called from their mail reader, this can also be
  229.                   set with the MM_YANKMODE variable.)  If you use yank
  230.                   mode on messages that really ARE in MIME format, or
  231.                   on messages that do not contain a MIME message in
  232.                   the body, the effects could be VERY strange.  It
  233.                   won't hurt you, but you won't see anything very
  234.                   useful, either.
  235.  
  236.           ----zzzz      This option tells metamail to delete its input file
  237.                   when finished.  The -z option requires that a file
  238.                   name was given as an argument to metamail, i.e. that
  239.                   it is not reading stdin.
  240.  
  241.           ----TTTT      This option is intended to be used by metamail
  242.                   recursively, to turn off the effect of the
  243.                   MM_TRANSPARENT environment variable.  It should only
  244.                   be used when the metamail program restarts itself in
  245.                   a terminal emulator window.
  246.  
  247.           FFFFiiiilllleeee NNNNaaaammmmeeee AAAArrrrgggguuuummmmeeeennnnttttssss
  248.                   Any argument that does not start with "-" is
  249.                   interpreted as the name of a file to read instead of
  250.                   standard input.
  251.  
  252.      UUUUNNNNRRRREEEECCCCOOOOGGGGNNNNIIIIZZZZEEEEDDDD MMMMAAAAIIIILLLL TTTTYYYYPPPPEEEESSSS
  253.           From time to time, metamail may tell you something like
  254.  
  255.           **** Unrecognized mail type: 'smell-o-vision'.  Writing to
  256.           file /tmp/metamail.1234 ****
  257.  
  258.  
  259.  
  260.  
  261.      Page 4                                          (printed 6/30/95)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  269.  
  270.  
  271.  
  272.           What this means is that your are trying to read a message
  273.           that contains data that is marked as being in "smell-o-
  274.           vision" format, but that your site has not yet configured
  275.           metamail to properly display that type of data.  In the
  276.           general case, such configuration is accomplished using the
  277.           mailcap file mechanism, as described in the next section.
  278.  
  279.           For unrecognized types, metamail simply removes all header
  280.           and encoding information from the data, and writes it out to
  281.           a temporary file.  (If running interactively, it will give
  282.           you more alternatives -- writing it to a temporary file,
  283.           viewing it as text, or jus skipping it.)  It is up to the
  284.           user to delete such files when he or she is through with
  285.           them.
  286.  
  287.  
  288.      TTTTHHHHEEEE MMMMAAAAIIIILLLLCCCCAAAAPPPP FFFFIIIILLLLEEEE((((SSSS))))
  289.           The primary purpose of the metamail program is to allow
  290.           diverse mail reading programs to centralize their access to
  291.           multimedia information.  If all the mail reading programs
  292.           call a single program to handle non-text mail, then only
  293.           that program needs to know about the diverse types of non-
  294.           text mail that might be received.
  295.  
  296.           The metamail program is made more flexible in this role
  297.           through the mechanism of one or more "mailcap" files.  The
  298.           purpose of the mailcap files is to tell metamail what
  299.           program to run in order to show the user mail in a given
  300.           format.  Thus it becomes possible to add a new media type to
  301.           all of the mail reading programs at a site simply by adding
  302.           a line to a mailcap file.
  303.  
  304.           Metamail uses a search path to find the mailcap file(s) to
  305.           consult.  Unlike many path searches, if necessary metamail
  306.           will read _a_l_l the mailcap files on its path.  That is, it
  307.           will keep reading mailcap files until it runs out of them,
  308.           or until it finds a line that tells it how to handle the
  309.           piece of mail it is looking at.  If it finds a matching
  310.           line, it will execute the command that is specified in the
  311.           mailcap file.
  312.  
  313.           The default search path is equivalent to
  314.  
  315.           $HOME/.mailcap:/usr/local/etc/mailcap:/usr/etc/mailcap:/etc/mailcap:/etc/mail/mailcap:/usr/public/lib/mailcap"
  316.  
  317.           It can be overridden by setting the MAILCAPS environment
  318.           variable.  Note: Metamail does not actually interpret
  319.           environment variables such as $HOME or the "~" syntax in
  320.           this path search.
  321.  
  322.           The format of mailcap files is explained in the manual entry
  323.           for mailcap(4).
  324.  
  325.  
  326.  
  327.      Page 5                                          (printed 6/30/95)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  335.  
  336.  
  337.  
  338.      NNNNOOOONNNN----AAAASSSSCCCCIIIIIIII HHHHEEEEAAAADDDDEEEERRRR FFFFIIIIEEEELLLLDDDDSSSS
  339.           Metamail has rudimentary built-in support for the emerging
  340.           Internet standards for non-ASCII data in mail headers.  What
  341.           this means is that such data will be recognized, decoded,
  342.           and sent to the terminal.  This behavior may be more or less
  343.           reasonable, depending on the character set in the header
  344.           data and the capability of the user's terminal, but it will
  345.           rarely be any worse than showing such data in its encoded
  346.           form.
  347.  
  348.      EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
  349.           MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL____TTTTMMMMPPPPDDDDIIIIRRRR
  350.                   If set, this variable overrides "/tmp" as the name
  351.                   of the directory in which metamail and associated
  352.                   programs will create temporary files on UNIX.
  353.  
  354.           MMMMMMMM____NNNNOOOOAAAASSSSKKKK
  355.                   If MM_NOASK is set to "1", metamail will never ask
  356.                   the user for confirmation before running an
  357.                   interpreter.  Otherwise, MM_NOASK may be set to a
  358.                   comma-separated list of type names (without white
  359.                   space) for which the user does not desire
  360.                   confirmation.  Thus, setting MM_NOASK to
  361.                   "magicmail,audio" will cause the user not to be
  362.                   asked before running interpreters for magicmail- or
  363.                   audio-format mail, but the user will still be asked
  364.                   for all other types.  (If the -d command line option
  365.                   is given, MM_NOASK is set to 1 for spawned
  366.                   processes, allowing -d to work recursively.)
  367.  
  368.           KKKKEEEEYYYYHHHHEEEEAAAADDDDSSSS
  369.                   The KEYHEADS variable may be set to a colon-
  370.                   separated list of header names, which are the only
  371.                   headers that metamail will print out.  By default,
  372.                   the behavior is as if KEYHEADS were set to:
  373.  
  374.                   Date:From:Subject:To:CC:Content-Description
  375.  
  376.                   If KEYHEADS is set to the empty string, no header
  377.                   are printed out.  If it is set to an asterisk ("*"),
  378.                   all headers are printed out.  KKKKEEEEYYYYIIIIGGGGNNNNHHHHEEEEAAAADDDDSSSS The
  379.                   KEYIGNHEADS variable may be set to a colon-separated
  380.                   list of header names, which are the headers that
  381.                   metamail will not print out. This variable is only
  382.                   examined if KEYHEADS is not set.
  383.  
  384.                   If KEYIGNHEADS is set to the empty string, all
  385.                   headers are printed out.  If it is set to an
  386.                   asterisk ("*"), no headers will be printed out.
  387.  
  388.           MMMMMMMM____NNNNOOOOTTTTTTTTTTTTYYYY
  389.                   If MM_NOTTTY is set to any nonzero value, metamail
  390.  
  391.  
  392.  
  393.      Page 6                                          (printed 6/30/95)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  401.  
  402.  
  403.  
  404.                   will assume that it is not running in a terminal
  405.                   window.  MM_NOTTTY implies setting MM_NOASK to 1.
  406.                   If -z is given, MM_NOTTTY is set for spawned
  407.                   processes, allowing -z to work recursively.
  408.  
  409.           MMMMAAAAIIIILLLLCCCCAAAAPPPPSSSS
  410.                   This variable can be used to override the default
  411.                   path search for mailcap files.
  412.  
  413.           MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL____PPPPAAAAGGGGEEEERRRR
  414.                   If set, this variable overrides "more" as the name
  415.                   of the program to run to paginate output from an
  416.                   interpreter, when pagination has been requested.
  417.                   Note that the normal "PAGER" variable is not used
  418.                   because many pagers (notably the "less" pager)
  419.                   interfere with the workings of termcap-based mail
  420.                   viewers.
  421.  
  422.           NNNNOOOOMMMMEEEETTTTAAAAMMMMAAAAIIIILLLL
  423.                   This variable is not actually used by metamail, but
  424.                   is used by most metamail-compatible mail reading
  425.                   interfaces.  If NOMETAMAIL is set to any value, most
  426.                   mail reading interfaces will never call the metamail
  427.                   program, effectively inhibiting all multimedia
  428.                   functionality.
  429.  
  430.           MMMMMMMM____DDDDEEEEBBBBUUUUGGGG
  431.                   If MM_DEBUG is set to any value, metamail will
  432.                   produce slightly more verbose output to tell what it
  433.                   is doing.
  434.  
  435.           MMMMMMMM____QQQQUUUUIIIIEEEETTTT
  436.                   If this variable is set to "1", metamail will
  437.                   produce even less output than usual.  In particular,
  438.                   it will suppress the "Executing..." line unless
  439.                   MM_DEBUG is set.
  440.  
  441.                   Otherwise, this variable can be set to a comma-
  442.                   separated list of short commands, and the
  443.                   "Executing..." line will be suppressed for those
  444.                   commands only.
  445.  
  446.                   The default setting for MM_QUIET is "cat", which
  447.                   means that the "Executing..." line is printed for
  448.                   all commands executed except "cat".  This makes text
  449.                   support look more natural without sacrificing an
  450.                   understanding of what is going on in more complex
  451.                   circumstances.
  452.  
  453.           MMMMMMMM____YYYYAAAANNNNKKKKMMMMOOOODDDDEEEE
  454.                   Setting this variable to a non-zero value has the
  455.                   same  effect as the -y switch.  Be sure to read the
  456.  
  457.  
  458.  
  459.      Page 7                                          (printed 6/30/95)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  467.  
  468.  
  469.  
  470.                   caveats attached to the description of -y before you
  471.                   use it. Basically, the only time you would set
  472.                   MM_YANKMODE is in order to re-enter a mail reader in
  473.                   which you can't control the way metamail is called,
  474.                   just to read a single rejected MIME message that was
  475.                   rejected by a mail agent that does not understand
  476.                   MIME.  In such cases, you should read that message,
  477.                   exit, and unset this variable.
  478.  
  479.           MMMMMMMM____TTTTRRRRAAAANNNNSSSSPPPPAAAARRRREEEENNNNTTTT
  480.                   If this variable is set, metamail will reproduce the
  481.                   entire raw message on stdout, and will open up a new
  482.                   terminal emulator window in which to do something
  483.                   more intelligent.  This option supports certain
  484.                   brain-dead mail readers, such as mailtool, that
  485.                   actually depend on the output of the UNIX "Mail"
  486.                   program being the same as the raw message in the
  487.                   database.
  488.  
  489.           MMMMMMMM____CCCCHHHHAAAARRRRSSSSEEEETTTT
  490.                   If this variable is set, it will suppress the
  491.                   printing of character set declarations when mail
  492.                   headers being printed contain text in this character
  493.                   set.  For example, if you set MM_CHARSET to "iso-
  494.                   8859-8", it will suppress warnings when header
  495.                   output is produced in that character set.
  496.  
  497.           DDDDIIIISSSSPPPPLLLLAAAAYYYY Used to create a terminal window under the X11
  498.                   window system.
  499.  
  500.           WWWWIIIINNNNDDDDOOOOWWWW____PPPPAAAARRRREEEENNNNTTTT
  501.                   Used to create a terminal window under the SunTools
  502.                   window system.
  503.  
  504.           WWWWMMMMHHHHOOOOSSSSTTTT  Used to create a terminal window under the old
  505.                   Andrew WM window system.
  506.  
  507.      IIIINNNNTTTTEEEERRRRPPPPRRRREEEETTTTEEEERRRR EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
  508.           When metamail calls an interpreter specified in a mailcap
  509.           file, it sets several environment variables which can be
  510.           used by the interpreter if desired:
  511.  
  512.           MMMMMMMM____HHHHEEEEAAAADDDDEEEERRRRSSSS
  513.                   This variable is set to the full set of RFC822
  514.                   headers, if any.
  515.  
  516.           MMMMMMMM____MMMMAAAAIIIILLLLEEEERRRR
  517.                   This variable is set to the name of the mailer that
  518.                   called metamail, if the -m option was used.
  519.  
  520.           MMMMMMMM____CCCCOOOONNNNTTTTEEEENNNNTTTTTTTTYYYYPPPPEEEE
  521.                   This variable is set to the content type, as named
  522.  
  523.  
  524.  
  525.      Page 8                                          (printed 6/30/95)
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  533.  
  534.  
  535.  
  536.                   by the Content-type header or passed in via the -c
  537.                   option.  If the content-type has a subtype and
  538.                   parameters, these are also included in
  539.                   MM_CONTENTTYPE, e.g. "multipart/mixed;
  540.                   boundary=foobar".
  541.  
  542.           MMMMMMMM____SSSSUUUUMMMMMMMMAAAARRRRYYYY
  543.                   This variable is set to an efficient one-line
  544.                   "caption" of the message, typically including its
  545.                   sender and subject.
  546.  
  547.           MMMMMMMM____UUUUSSSSEEEEPPPPAAAAGGGGEEEERRRR
  548.                   This variable is set to a non-zero if the use of a
  549.                   pager has been requested for long output (e.g. the
  550.                   -p switch was given.)  If -p is given, MM_USEPAGER
  551.                   is set for spawned processes, allowing -p to work
  552.                   recursively.  This option cannot be used with -B.
  553.  
  554.           TTTTEEEERRRRMMMMIIIINNNNAAAALLLL____CCCCMMMMDDDD
  555.                   This variable may be set to a string that is used to
  556.                   start a new terminal window if necessary.  The
  557.                   command to be executed in that window will be
  558.                   APPENDED to this command.  By default, this is set
  559.                   to something  like "xterm -e" if DISPLAY is set, or
  560.                   "shelltool" if WINDOW_PARENT is set.  Users of Sun's
  561.                   OpenWindows may wish to set TERMINAL_CMD to
  562.                   "shelltool" if they prefer shelltool over xterm.
  563.  
  564.           MMMMMMMM____RRRRUUUUNNNNAAAASSSSRRRROOOOOOOOTTTT
  565.                   If set to a non-zero variable, this will allow the
  566.                   metamail program to be run by root, the same effect
  567.                   as the "-r" switch to metamail.
  568.  
  569.      FFFFIIIILLLLEEEESSSS
  570.           $HOME/.mailcap:/usr/local/lib/mailcap:/usr/local/contrib/lib/metamail/mailcap
  571.           -- default path for mailcap files.
  572.  
  573.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  574.           audiocompose(1), audiosend(1), ezview(1), getfilename(1),
  575.           mailto-hebrew(1), mailto(1), metasend(1), mmencode(1),
  576.           richtext(1), showaudio(1), showexternal(1), shownonascii(1),
  577.           showpartial(1), showpicture(1), mailcap(4)
  578.  
  579.      BBBBUUUUGGGGSSSS
  580.           In a multipart/alternative body or body parts, some headers
  581.           in the embedded part that should be displayed may not be
  582.           displayed.  This will rarely be a problem.  Also, in a
  583.           multipart/alternative, anything of type "multipart" or
  584.           "message" is considered to be a recognized part, regardless
  585.           of the recognizability of its contents.  This might be a
  586.           problem, only further experience will tell.
  587.  
  588.  
  589.  
  590.  
  591.      Page 9                                          (printed 6/30/95)
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  599.  
  600.  
  601.  
  602.           The "textualnewlines" field in mailcap entries affects a
  603.           global table of exceptions.  This means that if there is
  604.           more than one mailcap entry for a given content-type, and
  605.           they have conflicting "textualnewlines" settings, the wrong
  606.           value may be used.  I have been unable to conceive of a
  607.           situation where this would be a real problem, because it
  608.           seems inconceivable that a single content-type would ever
  609.           require newlines to be treated in two different ways,
  610.           regardless of the environment.
  611.  
  612.      CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
  613.           Copyright (c) 1991 Bell Communications Research, Inc.
  614.           (Bellcore)
  615.  
  616.           Permission to use, copy, modify, and distribute this
  617.           material for any purpose and without fee is hereby granted,
  618.           provided that the above copyright notice and this permission
  619.           notice appear in all copies, and that the name of Bellcore
  620.           not be used in advertising or publicity pertaining to this
  621.           material without the specific, prior written permission of
  622.           an authorized representative of Bellcore.  BELLCORE MAKES NO
  623.           REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY OF THIS
  624.           MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", WITHOUT
  625.           ANY EXPRESS OR IMPLIED WARRANTIES.
  626.  
  627.      AAAAUUUUTTTTHHHHOOOORRRR
  628.           Nathaniel S. Borenstein
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.      Page 10                                         (printed 6/30/95)
  658.  
  659.  
  660.  
  661.